The code has been tested with R version 4.0.3, “Bunny-Wunnies Freak Out” The following R packages and their dependencies must be installed before the code will run successfully:
data.tabledplyrlubridatesummarytoolsfitdistrplusdunn.testmclustQuantPsycenergyMASSggplot2ggpubrggrepelggforcepatchworkscalesBefore running the code, make sure the required R packages have been installed. Set the R working directory to the location of this README file. Input data need to be downloaded and saved in the ./dataset/ subdirectory of the R working directory, whereas figures generated running the code will be saved in the ./output/ subdirectory of the R working directory.
Running the entire script will require few minutes on most computers.
./dataset/ and ./output/ subdirectories, which will hold the underlying data sources and analysis output, respectively.script.R in R and run the code. The script start defining some functions used in the following analysis. Textual and numerical results are presented citing the sections of the submitted manuscript. Tables and Figures are reproduced at the end of the script. Only figures are saved in ./output/ subdirectory.Upon successful completion of script.R, numerical and textual results are visualized on screen and figures are saved as PDFs and PNGs in the ./output/ folder. Example format includes ./output/figure1.png, etc. These figures will look very similar, if not identical, to those found in the manuscript.
The entire code is available under the GNU General Public license. See LICENSE.txt for more information